package net.pimpas.web.jsf.components.message;

import javax.faces.context.FacesContext;

import net.pimpas.web.jsf.util.ComponentInformation;

public class UIMessage extends javax.faces.component.UIMessage {

	public static final String COMPONENT_TYPE			= ComponentInformation.COMPONENT_PREFIX_TYPE+".message";
	public static final String COMPONENT_FAMILY			= ComponentInformation.COMPONENT_PREFIX_FAMILY+".message";
	public static final String COMPONENT_RENDER_TYPE	= ComponentInformation.COMPONENT_PREFIX_RENDER+".message";
	
	@Override
	public String getFamily() {
		return COMPONENT_FAMILY;
	}
	
	@Override
	public String getRendererType() {
		return COMPONENT_RENDER_TYPE;
	}
	
	// TODO damm you myfaces!!! its your fault!
	@Override
	public String getClientId(FacesContext context) {
		return this.getId();
	}
}